package com.sc.show.feign;

import com.sc.show.entity.City;
import com.sc.show.hytrix.CityListFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author shuchang
 * @Date 2018/3/19 下午2:26
 */
@FeignClient(name = "zuul-service",fallback = CityListFallBack.class)
@Component
public interface CityListFeign {

    @GetMapping("/city/cities")
    List<City> listCity();
}
